{% extends "base.html" %}
{% block content %}

<!--搜索栏-->
<div class="page-header" style="padding-top:70px;">
    <form class="navbar-form" method="get" action="/apisearch/">
        {% csrf_token %}
        <input type="search" name="apitestname" placeholder="名称" required>
        <button type="submit">搜索</button>
    </form>
</div>

<!--流程接口列表-->
    <div class="row" style="padding-top: 50px;">
        <div class="col-md-11">
            <table class="table table-striped">
                <thead>
                <tr>
                    <th>选择</th><th>ID</th><th>产品</th><th>流程接口测试用例名称</th><th>流程接口描述</th><th>测试负责人</th><th>测试结果</th><th>测试用例步骤</th>
                </tr>
                </thead>
                <tbody>
                <form method="POST" action="">
                     {% csrf_token %}
                    {% for apitest in apitests %}
                    <tr>
                        <td>
                            <input type="checkbox" id="{{ apitest.id }}" name="my_checkbox" value="{{ apitest.id }}">
                            <label for="my_checkbox"></label>
                        </td>
                        <td>{{ apitest.id }}</td>
                        <td>{{ apitest.Product.productname }}</td>
                        <td><a href="{ % url apitest_manage % }">{{ apitest.apitestname }}</a></td>

                        <td>{{ apitest.apitestdesc }}</td>
                        <td>{{ apitest.apitester }}</td>
                        <td>{{ apitest.apitestresult }}</td>
                        <td>{{ apitest.Apistep.apiteststep }}</td>

                    </tr>
                    {% endfor %}
                  <button type="submit">提交</button>

                </form>
            <!--    {% for apitest in apitests %}
                <tr>
                    <td>{{ apitest.id }}</td>
                    <td>{{ apitest.Product.productname }}</td>
                    <td>{{ apitest.apitestname }}</td>
                    <td>{{ apitest.apitestdesc }}</td>
                    <td>{{ apitest.apitester }}</td>
                    <td>{{ apitest.apitestresult }}</td>
                    <td>{{ apitest.Apistep.apiteststep }}</td>
                </tr>
                {% endfor %}
                -->
                </tbody>
            </table>
        </div>
    </div>

{% endblock %}